/*
 * {comment of class}
 *
 * @author (C) <a href="http://www.carfield.com.hk">Carfield Yim</a>, 2005
 */
package hk.com.carfield.task;

import hk.com.carfield.action.Plain;
import hk.com.carfield.action.process.Session;
import hk.com.carfield.core.Context;
import hk.com.carfield.web.Request;

import java.io.File;

public final class ReportService implements Executor {
	public int runPerRequest(Context c, Request r, File l) {
		return 0;
	}
	public int runPerWeek(Context c) {
		return 0;
	}
	public int runPerDay(Context c) {
		final int count = Plain.notFoundFile.size()+Session.triedMap.size();
		c.mailMan.handleMap("not found files", Plain.notFoundFile);
		c.mailMan.handleMap("tried login", Session.triedMap);
		return count;
	}
}
